<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'ViewAdvancedSearch.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript">
function addRow(objTable){
	 var tbodyOnlineEdit=objTable.getElementsByTagName("TBODY")[0];
	 var theadOnlineEdit=objTable.getElementsByTagName("THEAD")[0];
	 var elm = theadOnlineEdit.lastChild.cloneNode(true);
	 elm.style.display="";
	 tbodyOnlineEdit.insertBefore(elm);
	}
function deleteRow(objTable){
	 var tbodyOnlineEdit=objTable.getElementsByTagName("TBODY")[0]; 
	 if(tbodyOnlineEdit.children.length>=1)
	    tbodyOnlineEdit.deleteRow(tbodyOnlineEdit.children.length-1);
	    return;
	}
</script>
	</head>
	<body>
		<center>

			<s:form action="AdvanSearchAction.action" method="post">
				<table id="advancedtable">
					<thead>
						<tr>

							<td>
								<s:label value="逻辑" />
							</td>
							<td>
								<s:label value="检索项" />
							</td>
							<td>
								<s:label value="检索词" />
							</td>
							<td>
								<s:label value="词频" />
							</td>
							<td>
								<s:label value="扩展" />
							</td>
							<td>
								<s:label value="关系" />
							</td>
							<td>
								<s:label value="检索词" />
							</td>
							<td>
								<s:label value="词频" />
							</td>
							<td>
								<s:label value="扩展" />
							</td>
						</tr>
						<tr>
							<td>
								<input type="button" value="+" onClick="addRow(advancedtable)" />
								<input type="button" value="-"
									onClick="deleteRow(advancedtable)" />
							</td>
							<td>
								<s:select name=""
									list="#{'pId':'病人编号','docName':'医师','caseId':'范例编号'}" />
							</td>
							<td>
								<s:textfield name="" />
							</td>
							<td>
								<s:select name="" list="#{'1':'1','2':'2','3':'3'}" />
							</td>
							<td>
								扩展
							</td>
							<td>
								<s:select name=""
									list="#{'1':'并且','2':'或者','3':'不包括','4':'同句','5':'同段'}" />
							</td>
							<td>
								<s:textfield name="" />
							</td>
							<td>
								<s:select name="" list="#{'1':'1','2':'2','3':'3'}" />
							</td>
							<td>
								扩展
							</td>
						</tr>

						<tr id="addcondition" style="display: none">
							<td>
								<s:select name=""
									list="#{'1':'并且','2':'或者','3':'不包括','4':'同句','5':'同段'}" />
							</td>
							<td>
								<s:select name=""
									list="#{'pId':'病人编号','docName':'医师','caseId':'范例编号'}" />
							</td>
							<td>
								<s:textfield name="" />
							</td>
							<td>
								<s:select name="" list="#{'1':'1','2':'2','3':'3'}" />
							</td>
							<td>
								扩展
							</td>
							<td>
								<s:select name=""
									list="#{'1':'并且','2':'或者','3':'不包括','4':'同句','5':'同段'}" />
							</td>
							<td>
								<s:textfield name="" />
							</td>
							<td>
								<s:select name="" list="#{'1':'1','2':'2','3':'3'}" />
							</td>
							<td>
								扩展
							</td>
						</tr>
					</thead>
					<tbody></tbody>
					<tr align="center">
						<td></td>
						<td></td>
						<td>
							<s:label value="从" />
							<s:select name="" list="#{'1':'1979','2':'1980','3':'1981'}" />
						</td>
						<td>
							<s:label value="到" />
							<s:select name="" list="#{'1':'1979','2':'1980','3':'1981'}" />
						</td>
						<td></td>
						<td>
							<s:label value="排序:" />
							<s:select name="" list="#{'1':'时间','2':'相关度'}" />
						</td>
						<td>
							<s:label value="匹配:" />
							<s:select name="" list="#{'1':'模糊','2':'精确'}" />
						</td>
					</tr>
				</table>
				<div>
					<s:submit value="搜索" />
					<s:reset value="重置" />
				</div>
			</s:form>
		</center>
	</body>
</html>
